package com.feeyo.groundservice.base.util;

import java.io.BufferedInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {

	private static Properties prop = new Properties();
	static{
		try {
			InputStream in = new BufferedInputStream (PropertiesUtils.class.getClassLoader().getResourceAsStream("config.properties"));
			prop.load(in);
		}catch (FileNotFoundException e) {
			e.printStackTrace();
		}catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static String getProperty(String key){
		return prop.getProperty(key);
	}
}
